/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * InterfazRegistros.java
 *
 * Created on 27/12/2011, 05:47:26 PM
 */
package vista.panel;

import controlador.ControladorInterfazRegistros;

/**
 *
 * @author Elias Mendoza
 */
public class InterfazRegistros extends javax.swing.JPanel {
  ControladorInterfazRegistros accion;

  /** Creates new form InterfazRegistros */
  public InterfazRegistros() {
    initComponents();
    accion = new ControladorInterfazRegistros(this);
  }

  /** This method is called from within the constructor to
   * initialize the form.
   * WARNING: Do NOT modify this code. The content of this method is
   * always regenerated by the Form Editor.
   */
  @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        jScrollPane3 = new javax.swing.JScrollPane();
        jPanel12 = new javax.swing.JPanel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        jPanel4 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        jPanel9 = new javax.swing.JPanel();
        jRadioButtonNave = new javax.swing.JRadioButton();
        jPanel11 = new javax.swing.JPanel();
        jRadioButtonProductor = new javax.swing.JRadioButton();
        jPanel7 = new javax.swing.JPanel();
        jRadioButtonProducto = new javax.swing.JRadioButton();
        jPanel8 = new javax.swing.JPanel();
        jRadioButtonSustrato = new javax.swing.JRadioButton();
        jPanel10 = new javax.swing.JPanel();
        jRadioButtonReferencia = new javax.swing.JRadioButton();
        jPanel13 = new javax.swing.JPanel();
        jButtonInsertar = new javax.swing.JButton();
        jSeparator2 = new javax.swing.JSeparator();
        jPanel5 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jPanelContenedorRegistro = new javax.swing.JPanel();
        jPanel3 = new javax.swing.JPanel();

        jPanel4.setBackground(new java.awt.Color(255, 255, 255));
        jPanel4.setLayout(new javax.swing.BoxLayout(jPanel4, javax.swing.BoxLayout.LINE_AXIS));

        jPanel2.setLayout(new java.awt.GridLayout(1, 0));

        jPanel9.setBackground(new java.awt.Color(255, 255, 255));
        jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Times New Roman", 1, 14), new java.awt.Color(102, 102, 102))); // NOI18N
        jPanel9.setLayout(new java.awt.GridBagLayout());

        jRadioButtonNave.setBackground(new java.awt.Color(255, 255, 255));
        buttonGroup1.add(jRadioButtonNave);
        jRadioButtonNave.setFont(new java.awt.Font("Times New Roman", 1, 11));
        jRadioButtonNave.setText("Nave");
        jPanel9.add(jRadioButtonNave, new java.awt.GridBagConstraints());

        jPanel2.add(jPanel9);

        jPanel11.setBackground(new java.awt.Color(255, 255, 255));
        jPanel11.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Times New Roman", 1, 14), new java.awt.Color(102, 102, 102))); // NOI18N
        jPanel11.setLayout(new java.awt.GridBagLayout());

        jRadioButtonProductor.setBackground(new java.awt.Color(255, 255, 255));
        buttonGroup1.add(jRadioButtonProductor);
        jRadioButtonProductor.setFont(new java.awt.Font("Times New Roman", 1, 11));
        jRadioButtonProductor.setText("Productor");
        jPanel11.add(jRadioButtonProductor, new java.awt.GridBagConstraints());

        jPanel2.add(jPanel11);

        jPanel4.add(jPanel2);

        jPanel7.setBackground(new java.awt.Color(255, 255, 255));
        jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Times New Roman", 1, 14), new java.awt.Color(102, 102, 102))); // NOI18N
        jPanel7.setLayout(new java.awt.GridBagLayout());

        jRadioButtonProducto.setBackground(new java.awt.Color(255, 255, 255));
        buttonGroup1.add(jRadioButtonProducto);
        jRadioButtonProducto.setFont(new java.awt.Font("Times New Roman", 1, 11));
        jRadioButtonProducto.setText("Producto");
        jPanel7.add(jRadioButtonProducto, new java.awt.GridBagConstraints());

        jPanel4.add(jPanel7);

        jPanel8.setBackground(new java.awt.Color(255, 255, 255));
        jPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Times New Roman", 1, 14), new java.awt.Color(102, 102, 102))); // NOI18N
        jPanel8.setLayout(new java.awt.GridBagLayout());

        jRadioButtonSustrato.setBackground(new java.awt.Color(255, 255, 255));
        buttonGroup1.add(jRadioButtonSustrato);
        jRadioButtonSustrato.setFont(new java.awt.Font("Times New Roman", 1, 11));
        jRadioButtonSustrato.setText("Sustrato");
        jPanel8.add(jRadioButtonSustrato, new java.awt.GridBagConstraints());

        jPanel4.add(jPanel8);

        jPanel10.setBackground(new java.awt.Color(255, 255, 255));
        jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Times New Roman", 1, 14), new java.awt.Color(102, 102, 102))); // NOI18N
        jPanel10.setLayout(new java.awt.GridBagLayout());

        jRadioButtonReferencia.setBackground(new java.awt.Color(255, 255, 255));
        buttonGroup1.add(jRadioButtonReferencia);
        jRadioButtonReferencia.setFont(new java.awt.Font("Times New Roman", 1, 11));
        jRadioButtonReferencia.setText("Referencia");
        jPanel10.add(jRadioButtonReferencia, new java.awt.GridBagConstraints());

        jPanel4.add(jPanel10);

        jPanel13.setBackground(new java.awt.Color(255, 255, 255));
        jPanel13.setLayout(new java.awt.GridBagLayout());

        jButtonInsertar.setFont(new java.awt.Font("Times New Roman", 1, 12));
        jButtonInsertar.setText("Insertar");
        jButtonInsertar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonInsertarActionPerformed(evt);
            }
        });
        jPanel13.add(jButtonInsertar, new java.awt.GridBagConstraints());

        jPanel4.add(jPanel13);

        jScrollPane2.setViewportView(jPanel4);

        jPanel5.setLayout(new java.awt.GridLayout(1, 0));

        jPanelContenedorRegistro.setBackground(new java.awt.Color(255, 255, 255));
        jPanelContenedorRegistro.setLayout(new java.awt.CardLayout(20, 20));
        jScrollPane1.setViewportView(jPanelContenedorRegistro);

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 684, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 680, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 680, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(133, 133, 133)
                        .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, 290, Short.MAX_VALUE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 415, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );

        jTabbedPane1.addTab("Altas", jPanel1);

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 710, Short.MAX_VALUE)
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 515, Short.MAX_VALUE)
        );

        jTabbedPane1.addTab("Consultas", jPanel3);

        jPanel12.add(jTabbedPane1);

        jScrollPane3.setViewportView(jPanel12);

        add(jScrollPane3);
    }// </editor-fold>//GEN-END:initComponents

  private void jButtonInsertarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonInsertarActionPerformed
    // TODO add your handling code here:
    accion.cargaPanelSeleccionado("insertar");
  }//GEN-LAST:event_jButtonInsertarActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    public javax.swing.ButtonGroup buttonGroup1;
    public javax.swing.JButton jButtonInsertar;
    public javax.swing.JPanel jPanel1;
    public javax.swing.JPanel jPanel10;
    public javax.swing.JPanel jPanel11;
    public javax.swing.JPanel jPanel12;
    public javax.swing.JPanel jPanel13;
    public javax.swing.JPanel jPanel2;
    public javax.swing.JPanel jPanel3;
    public javax.swing.JPanel jPanel4;
    public javax.swing.JPanel jPanel5;
    public javax.swing.JPanel jPanel7;
    public javax.swing.JPanel jPanel8;
    public javax.swing.JPanel jPanel9;
    public javax.swing.JPanel jPanelContenedorRegistro;
    public javax.swing.JRadioButton jRadioButtonNave;
    public javax.swing.JRadioButton jRadioButtonProducto;
    public javax.swing.JRadioButton jRadioButtonProductor;
    public javax.swing.JRadioButton jRadioButtonReferencia;
    public javax.swing.JRadioButton jRadioButtonSustrato;
    public javax.swing.JScrollPane jScrollPane1;
    public javax.swing.JScrollPane jScrollPane2;
    public javax.swing.JScrollPane jScrollPane3;
    public javax.swing.JSeparator jSeparator2;
    public javax.swing.JTabbedPane jTabbedPane1;
    // End of variables declaration//GEN-END:variables
}
